home *** CD-ROM | disk | FTP | other *** search
/ C & C++ Multimedia Cyber Classroom / C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso / src / fig22_19.jar / Ch22 / Fig22_19 / Fig22_19.c
C/C++ Source or Header  |  1995-07-20  |  335b  |  16 lines

  1. /* Reading floating-point numbers */
  2. #include <stdio.h>
  3.  
  4. main()
  5. {
  6.    float a, b, c;
  7.    
  8.    printf("Enter three floating-point numbers: \n");
  9.    scanf("%e%f%g", &a, &b, &c);
  10.    printf("Here are the numbers entered in plain\n");
  11.    printf("floating-point notation:\n");
  12.    printf("%f\n%f\n%f\n", a, b, c);
  13.    return 0;
  14. }
  15.  
  16.